package com.iot.ammeter.exception;

import com.iot.ammeter.constant.Constant;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName: BusinessExceptions
 * @Author: Basil
 * @Date: 2022/3/28 下午4:32
 * @Version: 1.0
 * @Description: 业务异常
 **/
@Getter
@AllArgsConstructor
public class BusinessExceptions extends RuntimeException {
    /**
     * 错误码
     */
    private String code = Constant.Exception.BUSINESS_EXCEPTIONS;

    /**
     * 错误信息
     */
    private final String message;

    public BusinessExceptions(String message) {
        this.message = message;
    }
}
